<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ModConta
 *
 * @author EaDeveloper
 */
class ModConta extends ModIframe {

    public $modules = array("admin_cuentas",
        "admin_contabilidad_configurar_anio_mes",
        "admin_contabilidad_partidas",
        "admin_contabilidad_cierre",
        "admin_contabilidad_rpt_movimientos",
        "admin_bancos",
        "admin_cuentas_x_pagar",
        "admin_cuentas_editar");

    public function __construct() {
        $this->instanceName = "ModConta";
        $this->title="Contabilidad";
        $this->includePath="";
    }

    public function getPath() {
        $path = parent::getPath();
        $id = getParam("page");
        $path.="&page=$id";
        return $path;
    }

    public function getPageFrame() {
        $id = getParam("page");
        $file = $this->modules[$id];
        $page = RELATIVE_PATH . "conta_erp/core/$file.php";
        return $page;
    }  
    

}

?>
